package com.homework.ch06;
public class Student {
    private String name;
    private int age;
    private String gender;
    private String num;
    public Student(){}
    public Student(String name,int age,String gender,String num)
    {
        this.name=name;
        this.age=age;
        this.gender=gender;
        this.num=num;
    }
    public void setName(String name)
    {
        this.name=name;
    }
    public void setAge(int age)
    {
        this.age=age;
    }
    public void setGender(String gender)
    {
        this.gender=gender;
    }
    public void setNum(String num)
    {
        this.num=num;
    }
    public String getName()
    {
        return this.name;
    }
    public int getAge()
    {
        return this.age;
    }
    public String getGender()
    {
        return this.gender;
    }
    public String getNum()
    {
        return this.num;
    }
}
